/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.dream.oproject.menu.dao;

import javacommon.base.BaseIbatis3Dao;

import org.springframework.stereotype.Repository;

import cn.org.rapid_framework.page.Page;

import com.dream.oproject.menu.model.OpSystemMenu;
import com.dream.oproject.menu.vo.query.OpSystemMenuQuery;


@Repository
public class OpSystemMenuDao extends BaseIbatis3Dao<OpSystemMenu,java.lang.Long>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "OpSystemMenu";
	}
	
	public void saveOrUpdate(OpSystemMenu entity) {
		if(entity.getUuid() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(OpSystemMenuQuery query) {
		return pageQuery("OpSystemMenu.findPage",query);
	}
	

}
